@echo off
::chcp 65001
echo 需要提供参数以指定目标项目[common,packaged,specific]...
set /p PROJECT=请输入：

set PROJECT_DIR="C:\pri\zhuzx\util-%PROJECT%"
if not exist %PROJECT_DIR% exit /b
::set TARGET_DIR="D:\code\nsts_flow\flow_base\libs\org\zhuzx\util-%PROJECT%"
::echo 清空目标文件夹
::if exist %TARGET_DIR% rmdir /s/q %TARGET_DIR%
cd %PROJECT_DIR%
echo 开始打包部署
call mvn clean deploy

set MAVEN_REPOSITORY="C:\Java\maven-repository\org\zhuzx\util-%PROJECT%"
echo 删除maven仓库中install的文件
rmdir /s/q %MAVEN_REPOSITORY%
echo 完毕
pause